package com.droowa.domain;

import java.io.Serializable;
import java.util.Date;

public class CancelManagement implements Serializable {
	private int orderNumber;
	private String orderer;
	private String productName;
	private Date cancellationDate;
	private int cancelMoney;
	private String cancelProcess;
	public CancelManagement() {
		super();
	}
	public CancelManagement(int orderNumber, String orderer,
			String productName, Date cancellationDate, int cancelMoney,
			String cancelProcess) {
		super();
		this.orderNumber = orderNumber;
		this.orderer = orderer;
		this.productName = productName;
		this.cancellationDate = cancellationDate;
		this.cancelMoney = cancelMoney;
		this.cancelProcess = cancelProcess;
	}
	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderer() {
		return orderer;
	}
	public void setOrderer(String orderer) {
		this.orderer = orderer;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Date getCancellationDate() {
		return cancellationDate;
	}
	public void setCancellationDate(Date cancellationDate) {
		this.cancellationDate = cancellationDate;
	}
	public int getCancelMoney() {
		return cancelMoney;
	}
	public void setCancelMoney(int cancelMoney) {
		this.cancelMoney = cancelMoney;
	}
	public String getCancelProcess() {
		return cancelProcess;
	}
	public void setCancelProcess(String cancelProcess) {
		this.cancelProcess = cancelProcess;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + cancelMoney;
		result = prime * result
				+ ((cancelProcess == null) ? 0 : cancelProcess.hashCode());
		result = prime
				* result
				+ ((cancellationDate == null) ? 0 : cancellationDate.hashCode());
		result = prime * result + orderNumber;
		result = prime * result + ((orderer == null) ? 0 : orderer.hashCode());
		result = prime * result
				+ ((productName == null) ? 0 : productName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CancelManagement other = (CancelManagement) obj;
		if (cancelMoney != other.cancelMoney)
			return false;
		if (cancelProcess == null) {
			if (other.cancelProcess != null)
				return false;
		} else if (!cancelProcess.equals(other.cancelProcess))
			return false;
		if (cancellationDate == null) {
			if (other.cancellationDate != null)
				return false;
		} else if (!cancellationDate.equals(other.cancellationDate))
			return false;
		if (orderNumber != other.orderNumber)
			return false;
		if (orderer == null) {
			if (other.orderer != null)
				return false;
		} else if (!orderer.equals(other.orderer))
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "CancelManagement [orderNumber=" + orderNumber + ", orderer="
				+ orderer + ", productName=" + productName
				+ ", cancellationDate=" + cancellationDate + ", cancelMoney="
				+ cancelMoney + ", cancelProcess=" + cancelProcess + "]";
	}
	
	
}
